Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parent cluster resource #3276

Merged
merged 3 commits into from
Feb 10, 2025
Merged

Add parent cluster resource #3276

merged 3 commits into from
Feb 10, 2025

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Feb 5, 2025

Description

Add cluster resource parent field to cluster resources.
Some cluster resources are created under some grouping format. The groups can be master group, clone group or simply a normal group.
In order to keep the flat nature of the cluster resources, I have added a parent field putting their parent group data.
If they don't have any parent the field is set to nil.

We need this information in order to implement some new agent operations. Many operations will depend on knowing if the cluster is in maintenance or not. And in some cases, if specific resources of the cluster are in maintenance or not. Many times, the "parent" resource is set to maintenance, so we need to have this information.

For example to do SAP maintenance operations (like applying saptune): https://documentation.suse.com/sbp/sap-15/html/SLES4SAP-hana-sr-guide-PerfOpt-15/index.html#id-updating-sap-hana-seamless-sap-hana-maintenance

How was this tested?

UT

@arbulu89 arbulu89 added the enhancement New feature or request label Feb 5, 2025
@arbulu89 arbulu89 marked this pull request as ready for review February 5, 2025 14:30
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@arbulu89 arbulu89 force-pushed the add-parent-cluster-resource branch from 85905f5 to 83e2c35 Compare February 6, 2025 07:46
@arbulu89 arbulu89 force-pushed the add-parent-cluster-resource branch from 83e2c35 to 9dbad5f Compare February 6, 2025 08:37
@arbulu89 arbulu89 merged commit f19d2f6 into main Feb 10, 2025
38 checks passed
@arbulu89 arbulu89 deleted the add-parent-cluster-resource branch February 10, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants